import { DynamicIcon } from 'lucide-react/dynamic'

import { dynamicIconImports } from 'lucide-react/dynamic'
export function Icon({ name, ...props }) {
  const Component = dynamicIconImports[name]
  if (!Component) {
    return <></>
  }
  return <DynamicIcon name={name} {...props} />
}
